package com.study.designer.creator.factory;

import com.study.designer.creator.factory.commodity.ICommodity;

public class FactoryMainTest {
    public static void main(String[] args) {
        CommodityFactory storeFactory = new CommodityFactory();

        ICommodity commodityService_1 = storeFactory.getCommodityService(1);
        commodityService_1.sendCommodity();

        commodityService_1 = storeFactory.getCommodityService(2);
        commodityService_1.sendCommodity();

        commodityService_1 = storeFactory.getCommodityService(3);
        commodityService_1.sendCommodity();
    }
}
